//
//  YFConposeButton.swift
//  微博
//
//  Created by 余仿 on 16/4/15.
//  Copyright © 2016年 YF. All rights reserved.
//

import UIKit

let imageWidth:CGFloat = 80
class YFConposeButton: UIButton {

    override func titleRectForContentRect(contentRect: CGRect) -> CGRect {


        let titleHeight:CGFloat = contentRect.size.height - imageWidth

        let titleRect = CGRect(x: 0, y: imageWidth, width: imageWidth, height: titleHeight)

        return titleRect
    }

    override func imageRectForContentRect(contentRect: CGRect) -> CGRect {

       let imageRect = CGRect(x: 0, y: 0, width: imageWidth, height: imageWidth)

        return imageRect

    }
}
